<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a = [{ name: 123, age: 10 }, { name: 456, age: 10 }, { name: 789, age: 10 },]
        const b=a.map(item=>{
            return {
                name:item.name,
                Age:item.age
            }
        })
        console.log(b)
    </script>
</body>

</html>